<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use DB;

class Product extends Model
{
    protected $guarded = ['id'];
    
    //protected $appends = ['month_sale'];  


    public function cate()
    {
    	return $this->belongsTo(Cate::class,'cate_id');
    }

   
    

   

    public function imgs()
    {
        return $this->hasMany(ProductImg::class);
    }

   

  

   

    

   

   
   

   

   





    
}
